<div class="side-menu sidebar-inverse">
    <nav class="navbar navbar-default" role="navigation">
        <div class="side-menu-container">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">
                    <div class="icon fa fa-paper-plane"></div>
                    <div class="title">Flat Admin V.2</div>
                </a>
                <button type="button" class="navbar-expand-toggle pull-right visible-xs fa-rotate-90">
                    <i class="fa fa-times icon"></i>
                </button>
            </div>
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="javascript:void(0)">
                        <span class="icon fa fa-tachometer"></span><span class="title">Dashboard</span>
                    </a>
                </li>

                <#if menus??>
                    <#list menus as menu>
                        <#if menu.children?? && menu.children?size gt 0>
                            <li class="panel panel-default dropdown">
                                <a data-toggle="collapse" href="#dropdown-element-${menu_index}">
                                    <span class="icon fa fa-desktop"></span><span class="title">${menu.name}</span>
                                </a>
                                <!-- Dropdown level 1 -->
                                <div id="dropdown-element-${menu_index}" class="panel-collapse collapse">
                                    <div class="panel-body">
                                        <ul class="nav navbar-nav">
                                            <#list menu.children as subMenu>
                                                <li><a href="${rc.contextPath}/${subMenu.url}">${subMenu.name}</a></li>
                                            </#list>
                                        </ul>
                                    </div>
                                </div>
                            </li>
                        </#if>
                    </#list>
                </#if>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </nav>
</div>